package org.codingq92.frame.springmvc.controller;

import org.codingq92.frame.spring.ann.CusComponent;
import org.codingq92.frame.springmvc.ann.CusController;
import org.codingq92.frame.springmvc.ann.CusParam;
import org.codingq92.frame.springmvc.ann.CusRequestMapping;

@CusComponent
@CusController
public class TestController {

    @CusRequestMapping(value = "/test1")
    public String test1() {
        return "This is test method!!!";
    }

    @CusRequestMapping(value = "/test2")
    public String test2(@CusParam("name") String name, @CusParam("age") int age) {
        return String.format("This is test method!!! name=%s, age=%d", name, age);
    }
}
